#include "tinyexpr.h"
#include <stdio.h>

int main() {
    printf("Debugging logical NOT expressions:\n\n");
    
    int error;
    
    /* Test basic logical NOT */
    printf("!5 = %f\n", te_interp("!5", &error));
    printf("Error position: %d\n", error);
    
    /* Test logical NOT with addition */
    printf("!5 + 3 = %f\n", te_interp("!5 + 3", &error));
    printf("Error position: %d\n", error);
    
    /* Test logical NOT with parentheses */
    printf("!(5 + 3) = %f\n", te_interp("!(5 + 3)", &error));
    printf("Error position: %d\n", error);
    
    /* Test simple addition for comparison */
    printf("5 + 3 = %f\n", te_interp("5 + 3", &error));
    printf("Error position: %d\n", error);
    
    return 0;
}